<template>
  <div class="goods-list">
    <goods-item
      v-for="(item, index) in goods_list"
      :key="index"
      :goods_info="item"
      class="goods-item"
    ></goods-item>
  </div>
</template>

<script>
import GoodsItem from './GoodsItem'
export default {
  props: {
    goods_list: {
      type: Array,
      default() {
        return []
      },
    },
  },
  components: {
    GoodsItem,
  },
}
</script>

<style lang="less" scoped>
.goods-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0 10px;
  justify-content: space-between;
  .goods-item {
    width: 48%;
  }
}
</style>
